package com.cloudcompare.diff.bean;

public class Item implements Comparable<Item>{
	private String name;
	private Diff present;
	private Diff directory;
	private Diff dissasembly;
	private Diff text;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public Diff getPresent() {
		return present;
	}
	public void setPresent(Diff present) {
		this.present = present;
	}
	public Diff getDirectory() {
		return directory;
	}
	public void setDirectory(Diff directory) {
		this.directory = directory;
	}
	public Diff getDissasembly() {
		return dissasembly;
	}
	public void setDissasembly(Diff dissasembly) {
		this.dissasembly = dissasembly;
	}
	public Diff getText() {
		return text;
	}
	public void setText(Diff text) {
		this.text = text;
	}
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Item other = (Item) obj;
		if (name == null) {
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		return true;
	}
	public int compareTo(Item other) {
		// TODO Auto-generated method stub
		return this.getName().compareTo(other.getName());
	}
	
	
}
